package com.zhang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

@SpringBootApplication
@EnableWebSocket
@EnableAsync //开启异步注解功能
@EnableScheduling //开启基于注解的定时任务
@EnableFeignClients(basePackages = "com.zhang.service")
public class DeviceServerApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(DeviceServerApplication.class, args);
    }
}
